<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>Users List</h1>

	<table border="1" width="90%">
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Password</th>
			<th>Email</th>
			<th>Sex</th>
			<th>Country</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
		<tr th:each="employee : ${employees}">
			<td th:text="${employee.id}"></td>
			<td th:text="${employee.name}"></td>
			<td th:text="${employee.password}"></td>
			<td th:text="${employee.email}"></td>
			<td th:text="${employee.sex}"></td>
			<td th:text="${employee.country}"></td>
			<td><a href="@{/editform(id=${employee.id})}">Edit</a></td>
			<td><a href="@{/deleteemp(id=${employee.id})}">Delete</a></td>
		</tr>
	</table>
	<a href="@{/addform}">Add Employee</a>
</body>
</html>
